package com.plum.admin.modules.youeorder.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.plum.admin.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 机构表
 * </p>
 *
 * @author 子丶沫
 * @since 2021-08-17
 */
@Data
@Accessors(chain = true)
@TableName("sys_office")
@ApiModel(value="SysOffice对象", description="机构表")
public class SysOffice implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;
    @ApiModelProperty(value = "父级编号")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "所有父级编号")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "别名")
    @TableField("name_alias")
    private String nameAlias;

    @ApiModelProperty(value = "统一信用代码")
    @TableField("unified_credit_code")
    private String unifiedCreditCode;


    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private BigDecimal sort;

    @ApiModelProperty(value = "归属区域")
    @TableField("area_id")
    private String areaId;

    @ApiModelProperty(value = "区域编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "机构类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "机构等级")
    @TableField("grade")
    private String grade;

    @ApiModelProperty(value = "联系地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "邮政编码")
    @TableField("zip_code")
    private String zipCode;

    @ApiModelProperty(value = "负责人")
    @TableField("master")
    private String master;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "传真")
    @TableField("fax")
    private String fax;

    @ApiModelProperty(value = "提成比例")
    @TableField("rate")
    private String rate;

    @ApiModelProperty(value = "手续费比例")
    @TableField("fee")
    private BigDecimal fee;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "银行卡号")
    @TableField("bankNum")
    private String banknum;

    @ApiModelProperty(value = "开户行")
    @TableField("bankName")
    private String bankname;

    @ApiModelProperty(value = "是否启用")
    @TableField("USEABLE")
    private String useable;

    @ApiModelProperty(value = "主负责人")
    @TableField("PRIMARY_PERSON")
    private Long primaryPerson;

    @ApiModelProperty(value = "副负责人")
    @TableField("DEPUTY_PERSON")
    private Long deputyPerson;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "删除标记")
    @TableField("del_flag")
    private String delFlag;

    @ApiModelProperty(value = "结算方式 0 线下 1线上")
    @TableField("settlement_type")
    private Integer settlementType;

    @ApiModelProperty(value = "业务类型 0城际 1市内 2接送机")
    @TableField("business_type")
    private String businessType;
//
//    @ApiModelProperty(value = "类型 1平台运力类型 2供应商运力类型 3代理商")
//    @TableField("grade_type")
//    private Integer gradeType;

//    @ApiModelProperty(value = "有车加盟结算方式 0线下 1线上")
//    @TableField("has_car_join")
//    private Integer hasCarJoin;
//
//    @ApiModelProperty(value = "无车加盟结算方式 0线下 1线上")
//    @TableField("no_car_join")
//    private Integer noCarJoin;

//    @ApiModelProperty(value = "对应的供应商ID    -1已被其它代理商关联")
//    @TableField("child_ids")
//    private String childIds;


}
